package cn.tedu.egweibo0416.mapper;

import cn.tedu.egweibo0416.pojo.entity.Comment;
import cn.tedu.egweibo0416.pojo.vo.CommentVO;
import org.hibernate.validator.constraints.Range;

import java.util.List;

public interface CommentMapper {
    int insertComment(Comment comment);

    List<CommentVO> selectByWeiboId(@Range(min = 100, max = 500, message = "微博编号必须在100-500之间") Long id);
}
